<?php
define('BEVIN', TRUE);
include_once("include/common.inc.php");
$uid = $user->checkUserLogin();
if(!$uid) {
	message("请先登陆！","login.php");
}

$userinfo = $user->getUserInfoById($uid);
$cardlist = $card->getCardList();

$smarty->assign('userinfo',$userinfo);
$smarty->assign('cardlist',$cardlist);
$smarty->display('index.html');
?>